CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

include_directories(${PROJECT_ROOT})
include_directories(${PROJECT_ROOT}/include)
include_directories(${PROJECT_ROOT}/comn/include)
include_directories(${PROJECT_ROOT}/shared)
include_directories(${PROJECT_ROOT}/LitePlayer/include)

link_directories(${PROJECT_ROOT}/lib)
link_directories(${PROJECT_ROOT}/comn/lib)


aux_source_directory(. SOURCE)
FILE(GLOB HEADER "*.h")

if (NOCRT)
	set(CMAKE_MFC_FLAG 1)
else()
	add_definitions(-D_AFXDLL)
	set(CMAKE_MFC_FLAG 2)
endif()

add_executable(DemoLitePlayer WIN32 ${SOURCE} ${HEADER}
    DemoLitePlayer.rc
    )


target_link_libraries(DemoLitePlayer
	LitePlayer
    debug comnd optimized comn
	)

